﻿@model  PagedList<UserInfo>
<table class="table">
    <thead>
        <tr><th>
                名称
            </th>
            <th>
                账号
            </th>
            
            <th>
                角色
            </th>
             <th></th>
        </tr>
    </thead>
    <tbody>
        @foreach (var item in Model)
        {
            <tr>
                <td>@Html.DetailsLink(item.Id, item.StaffNameEN)
                </td>
                <td>@item.Name
                </td>
                <td> @string.Join(",", item.Roles.Select(m=> m.RoleName))
                </td>
                 <td>
                    @Html.EditLink(item.Id)
                    @Html.ShortcutLink("删除", "Delete", new { item.Id})
                 </td>
            </tr>
        }
    </tbody>
</table>
@Html.CommonPager(Model, ViewData["SearchModel"])